#!/usr/bin/env bash

set -e

bundle install
bundle exec turbo_tests --verbose

# NOTE: Don't use `if` branches without `else` part, since the code in some of
# then seems to not abort the script regardless of `set -e`

# shellcheck source=../helpers/v2/build
DEPENDABOT_NATIVE_HELPERS_PATH="" source helpers/v2/build \
  && bundle exec rspec spec \
  && cd -
